package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/2/7.
 */

public class AddToCollectReq extends BaseReq {
    private String uuid;
    private String id;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String urlString() {
        return "favor/create";
    }

    public String getSecret() {
        String string = "uuid=" + uuid + "&id=" + id;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }
}
